package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 紫煦桉
 */
public class ReaderMessage extends AbstractToString {
    private Integer readerNo;
    private String name;
    private String password;
    private String readerSex;
    private String readerPhone;
    private String readerEmail;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date readerRegister;
    private Dept dept;

    public ReaderMessage() {
    }

    public ReaderMessage(Integer readerNo) {
        this.readerNo = readerNo;
    }

    public ReaderMessage(Integer readerNo, String name, String password, String readerSex, String readerPhone, String readerEmail, Date readerRegister) {
        this.readerNo = readerNo;
        this.name = name;
        this.password = password;
        this.readerSex = readerSex;
        this.readerPhone = readerPhone;
        this.readerEmail = readerEmail;
        this.readerRegister = readerRegister;
    }

    public ReaderMessage(Integer readerNo, String name, String password, String readerSex, String readerPhone, String readerEmail, Date readerRegister, Dept dept) {
        this.readerNo = readerNo;
        this.name = name;
        this.password = password;
        this.readerSex = readerSex;
        this.readerPhone = readerPhone;
        this.readerEmail = readerEmail;
        this.readerRegister = readerRegister;
        this.dept = dept;
    }

    public Integer getReaderNo() {
        return readerNo;
    }

    public void setReaderNo(Integer readerNo) {
        this.readerNo = readerNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getReaderSex() {
        return readerSex;
    }

    public void setReaderSex(String readerSex) {
        this.readerSex = readerSex;
    }

    public String getReaderPhone() {
        return readerPhone;
    }

    public void setReaderPhone(String readerPhone) {
        this.readerPhone = readerPhone;
    }

    public String getReaderEmail() {
        return readerEmail;
    }

    public void setReaderEmail(String readerEmail) {
        this.readerEmail = readerEmail;
    }

    public Date getReaderRegister() {
        return readerRegister;
    }

    public void setReaderRegister(Date readerRegister) {
        this.readerRegister = readerRegister;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }
}
